<template>
  <div class="wrapper"></div>
</template>

<script>
import Cookies from "js-cookie";
import {  fromPost, screenW ,onSize} from "@/libs/tool";
export default {
name:'',
components:{},
  props:{},
  data(){
    return {
              userInfo: "", //用户信息
            accessToken: "",
            Width: 0, //新闻宽度超出显示省略号
               screenWidth: screenW(), //屏幕宽度
    }
  },
  watch:{
      	watch: {
		screenWidth(val) {
			this.screenWidth = val
			this.onWidth()
		},
	},
  },
  computed:{},
  methods:{
      	fromSummit: fromPost,
		init() {
			let userInfo = JSON.parse(Cookies.get('userInfo'))
		//	this.selectNewsPortal()
		},
          moreClick(type, name, path) {
      this.setStore("moreDetailType", { type: type, name: name, path: path });
      this.$router.push({
        path: path
      });
    },
    noticeLocalClick(item, url, id, newID) {
      if (item) {
        this.setStore("pagesInformationDetail", id);
        this.$router.push({
          name: "information-detail"
        });
      } else {
        this.fromSummit(url, {
          authToken: this.accessToken,
          templateName: "news",
          infoID: newID.toString()
        });
      }
    },
  },
  created(){},
  mounted(){}
}
</script>
<style lang="less" scoped>
.wrapper{
    width:100%;
    height: 100%;
}
</style>
<style lang="less">
@import "./less/home.less";
@import "../../styles/common.less";
.my-card {
  .ivu-card-body {
    padding: 10px 12px;
  }
}
.my-card1 {
  .ivu-card-body {
    padding: 0;
  }
}
</style>
<style scoped lang="less">
@import "./less/page_home.less";
.demo-carousel {
  width: 100%;
  height: 100%;
}
.page_home_main {
  height: 100%;
}
.page_home_scroll {
  height: 100%;
  width: 100%;
}
</style>